package com.he.demo.service.hello.impl;

import com.he.demo.constant.Cst;
import com.he.demo.service.hello.HelloService;
import org.springframework.stereotype.Component;

import javax.jws.WebService;

/**
 * @author heyanjing
 * date:2021-02-22 2021/2/22 0022:16:56
 */
@Component
@WebService(
        serviceName ="HelloService" ,
        targetNamespace = Cst.NS_HELLO,//targetNamespace 为包名的反写
        endpointInterface = "com.he.demo.service.hello.HelloService"
)
public class HelloServiceImpl implements HelloService {
    @Override
    public String sayHello(String name ) {
        return "sayHello 返回 : "+name;
    }
    @Override
    public String sayHello2(String name ) {
        return "sayHello2 返回 : "+name;
    }
}
